<div class="MainContentInner">
    <div id="content">
        <div class="ContentWrapper">
            <div class="SubContent">
                <div class="title-big-box"><?php echo $menu->name ?></div>
                <?php

                $idOld = 0;
                if(isset($dsBaiVietInNhom) && !empty($dsBaiVietInNhom))
                foreach ($dsBaiVietInNhom as $key => $baiViet) {
                    if ($idOld != $baiViet->dmnhombv_id) {
                        $idOld = $baiViet->dmnhombv_id
                ?>
                    <div class="ListDocument01">
                        <div id="yw0" class="list-view">
                        <ul class="items">

                    <?php } ?>    

                        <li class="First">
                            <?php if ($baiViet->img != null || $baiViet->img != '') { ?>
                                <div class="Image">
                                    <a href="<?php echo Yii::app()->createUrl('baiviet/gioithieubaiviet', array('menu'=>$menu->alias,'alias' => $baiViet->link, 'id' => $baiViet->id)); ?>"
                                       title="<?php echo $baiViet->ten_bv; ?>">
                                        <img src="<?php echo $baiViet->img ?>" width="100" height="70"/></a>
                                </div>
                            <?php } ?>
                            <div class="Info">
                                <h6>
                                    <?php echo CHtml::link($baiViet->ten_bv, array('baiviet/gioithieubaiviet','menu'=>$menu->alias, 'alias' => $baiViet->link, 'id' => $baiViet->id)); ?>
                                </h6>

                                <p><?php echo strip_tags($baiViet->mieu_ta); ?> </p>

                                <p class="MoreSeeLink Wrapper">
                                    <?php echo CHtml::link('Xem thêm', array('baiviet/gioithieubaiviet','menu'=>$menu->alias, 'alias' => $baiViet->link, 'id' => $baiViet->id)); ?>
                                </p>
                            </div>
                        </li>

                    <?php
                    if (($key + 1 < count($dsBaiVietInNhom) && $baiViet->dmnhombv_id != $dsBaiVietInNhom[$key + 1]->dmnhombv_id) || $key + 1 == count($dsBaiVietInNhom)) {

                        ?>
                        </ul>
                        </div>
                    </div>


                <?php
                    }
                }
                ?>

            </div>
            <div class="SideContent">
                <?php $this->renderPartial('/common/ds_nhom_baiviet2', array('dsNhomInMenu' => $dsNhomInMenu,'dsBaiVietInNhom'=>$dsBaiVietInNhom,'menu'=>$menu)); ?>
                <?php $this->renderPartial('/common/bac_si_phu_trach'); ?>

            </div>
            <div class="clearboth"></div>
        </div>
    </div>
</div>